#include "test_insert_select.h"
void test_insert_select(Statement*statement,Table *table){
    int i=0;
    while (i<500)
    {
        srand(rand());
        switch (rand()%2)
        {
        case 0:
            statement->type = STATEMENT_INSERT;
            statement->row_to_insert.id=rand();
            memset(statement->row_to_insert.username,0,USERNAME_SIZE);
            sprintf(statement->row_to_insert.username,"username%d",i);
            memset(statement->row_to_insert.email,0,EMAIL_SIZE);
            sprintf(statement->row_to_insert.email,"email%d",i);
            break;
        default:
            statement->type = STATEMENT_SELECT;
            break;
        };
        execute_statement(statement,table);
        ++i;
    }
}